<html>
<head>
<title> Setting Up Hosting Account for a Web Site </title>
<meta name="Keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="locate.js"></script>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<script src="highlight.js"></script>
<body bgcolor="#FFFFFF" text="#000000" link="#0000A0" alink="#008000" vlink="#FF0000" onLoad="FindCorrectTOCPage(); prettyPrint()">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<p class="pagenavigation"><a href="24865.htm" target="_self"><img src="38976.gif" alt="Previous page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Previous page</a></p></td>
<td>
<p class="pagenavigation"><a href="22918.htm" target="_self"><img src="38977.gif" alt="Next page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Next page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518102.htm" target="TOC"><img src="38970.gif" alt="Locate page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Locate page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518102.htm" target="TOC"><a class="" title="" href="javascript:print();" target="_self"><img src="39072.gif" alt="Print this page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"></a></a></p></td>
</tr>
</table>
<h3 class="heading3">Setting Up Hosting Account for a Web Site</h3>
<p class="procedureheading">To host a Web site on the server:</p>
<ol class="procedurelistnumber"><li class="procedurelistnumber">Click the <strong class="specialbold">Clients</strong> shortcut in the navigation pane.</li><li class="procedurelistnumber">Click the required client in the list.</li><li class="procedurelistnumber">Click <strong class="specialbold">Add New Domain</strong>.</li><li class="procedurelistnumber">Specify the domain name just as you have registered it. Leave the <strong class="specialbold">www</strong> check box selected if you wish to allow users to access the site by a common and habitual URL like www.your-domain.com. <p class="listcontinue">Having the www alias preceding a domain name will not cost you anything, but it will allow users to get to the site no matter what they type in their browsers: www.your-domain.com and your-domain.com will both point to the same site.</p>
</li><li class="procedurelistnumber">If you have previously created a domain template for this client and predefined all hosting features and resource usage allotments (as described in the chapter <a id="h17701" class="jumptemplate" title="Simplifying Setup of Domains and Web Sites" href="17285.htm" target="_self">Simplifying Setup of Domains and Web Sites</a>), select the required template from the <strong class="specialbold">Select template</strong> box.</li><li class="procedurelistnumber">If you have a number of IP addresses to choose from, select the required address from the <strong class="specialbold">Select an IP address</strong> drop-down box. <p class="listcontinue">Bear in mind that e-commerce sites need a dedicated IP address (not shared among other sites) to implement Secure Sockets Layer data encryption.</p>
</li><li class="procedurelistnumber">Make sure that there is a check mark in the <strong class="specialbold">Proceed to hosting setup</strong> check box and click <strong class="specialbold">OK</strong>.</li><li class="procedurelistnumber">Select the <strong class="specialbold">Physical hosting</strong> option to host the Web site on this machine. <p class="listcontinue">Upon completion of this procedure, your control panel will set up the domain name server on this machine to serve the new domain name and prepare the web server to serve the new Web site: a new zone file with appropriate resource records will be added to the Domain Name Server's configuration files, a web space will be created inside the Web server's directory, and necessary user accounts will be created on the server.</p>
<p class="listnote"><strong class="buttons">Note:</strong> If the site is hosted on another machine, and you wish to set up your control panel's DNS server only to serve the DNS zone for that site, select either <strong class="specialbold">Frame forwarding</strong> or <strong class="specialbold">Standard forwarding</strong> option. With standard forwarding, a user is redirected to the site and the actual site's URL is shown in the user's browser, so the user always knows that he or she is redirected to another URL. With frame forwarding, a user is redirected to the site without knowing that the site actually resides at another location. For example: your customer has a free personal web site with his or her Internet Service Provider or a free Web host, and the Web site address is http://www.geocities.com/~myhomepage. The customer purchased a second level domain name www.myname.com and wants you to provide domain forwarding to his Web site. In this case you would normally choose the <strong class="specialbold">Frame forwarding</strong> service. See the chapter Serving Domain Names for Sites Hosted on Other Servers (Domain Forwarding) for details.</p>
</li><li class="procedurelistnumber">Specify the properties of a hosting account:<ul class="listbullet2"><li class="listbullet2"><strong class="specialbold">SSL support</strong>. Secure Sockets Layer encryption is generally used for protecting transfer of sensitive data during online transactions on e-commerce Web sites that run on dedicated IP addresses. SSL certificates that participate in the encryption process are usually applied to a single domain name on a single IP address, therefore, each site that needs SSL protection must be hosted on a dedicated IP address. An exception to this is subdomains, which you can protect with a wildcard certificate. Installing an SSL certificate on a Web server that hosts several web sites with different domain names on a single IP address (shared or name-based hosting) is technically possible, however, it is not recommended: the encryption will be provided, but users will get warning messages on attempt to connect to the secure site. To allow SSL encryption for Web sites, select the <strong class="specialbold">SSL support</strong> check box.</li><li class="listbullet2"><strong class="specialbold">Use a single directory for housing SSL and non-SSL content</strong>. By default, when users publish their sites through their FTP accounts, they need to upload the web content that should be accessible via secure connections to the httpsdocs directory, and the content that should be accessible via plain HTTP, to the httpdocs directory. For the convenience of  publishing all content through a single location – <code class="monospace">httpdocs</code> directory, select the <strong class="specialbold">Use a single directory for housing SSL and non-SSL content</strong> check box.</li><li class="listbullet2"><strong class="specialbold">FTP login</strong> and <strong class="specialbold">FTP password</strong>. Specify the user name and password that will be used for publishing the site to the server through FTP. Retype the password into the <strong class="specialbold">Confirm Password</strong> box.</li><li class="listbullet2"><strong class="specialbold">Hard disk quota</strong>. Specify the amount of disk space in megabytes allocated to the web space for this site. This is the so-called hard quota that will not allow writing more files to the web space when the limit is reached. At attempt to write files, users will get the &quot;Out of disk space&quot; error. Hard quotas should be enabled in the server's operating system, so if you see the &quot;Hard disk quota is not supported&quot; notice to the right of the <strong class="specialbold">Hard disk quota</strong> field, but would like to use the hard quotas, log in to the server shell and run the command <code class="monospace">quotaon -a</code>.</li><li class="listbullet2"><strong class="specialbold">Shell access to server with FTP user's credentials</strong>. This allows a site owner to upload securely web content to the server through a Secure Socket Shell connection, however, allowing shell access also poses a potential threat to the server security, so we recommend that you do not allow shell access. Leave the <strong class="specialbold">Forbidden</strong> option selected.</li><li class="listbullet2"><strong class="specialbold">Create and publish Web site using Sitebuilder</strong>. This allows a site owner to create and manage his or her Web site using the Sitebuilder program installed on your server. </li><li class="listbullet2"><strong class="specialbold">FrontPage support</strong>. Microsoft FrontPage is a popular web site authoring tool. To enable users to publish and modify their sites through Microsoft FrontPage, select the <strong class="specialbold">FrontPage support </strong>and <strong class="specialbold">FrontPage over SSL support</strong> check boxes, set the <strong class="specialbold">FrontPage authoring </strong>option to <strong class="specialbold">allowed</strong>, and<strong class="specialbold"> </strong>specify the <strong class="specialbold">FrontPage Administrator's login </strong>and<strong class="specialbold"> password.</strong></li><li class="listbullet2"><strong class="specialbold">Support for programming and scripting languages widely used in development of dynamic Web sites and server-side Web applications</strong>. Specify which of the following programming and scripting languages should be interpreted, executed or otherwise processed by the web server: Active Server Pages (ASP), Server Side Includes (SSI), PHP hypertext preprocessor (PHP), Common Gateway Interface (CGI), Fast Common Gateway Interface (FastCGI), Perl, Python, ColdFusion, and Miva scripting required for running Miva e-commerce solutions. By default, PHP is configured to operate in safe mode with functional restrictions. To learn more about PHP safe mode, refer to  <a class="externalhyperlinktemplate" title="" href="http://php.net/features.safe-mode" target="_blank">http://php.net/features.safe-mode</a>. Some web applications may not work properly with safe mode enabled: If an application on your site fails due to safe mode, switch the safe mode off by clearing the <strong class="specialbold">PHP 'safe_mode' on </strong>check box in the hosting account properties (<strong class="specialbold">Domains</strong> &gt; <strong class="specialbold">domain name</strong> &gt; <strong class="specialbold">Setup</strong> icon in the <strong class="specialbold">Hosting</strong> group).</li><li class="listbullet2"><strong class="specialbold">Web statistics</strong>. To allow domain/web site owner to view the information on the number of people visited his or her site and the pages of the site they viewed, select the statistics program  you need from the <strong class="specialbold">Web statistics</strong> menu (<strong class="specialbold">AWStats</strong> is recommended), and select the <strong class="specialbold">accessible via password protected directory /plesk-stat/</strong> check box. This will install the statistics software of your choice, which will generate reports and place them into the password protected directory. The domain/web site owner will then be able to access Web statistics at the URL: https://your-domain.com/plesk-stat/webstat using his or her FTP account login and password.<p class="listnote2"><strong class="buttons">Note:</strong> When you switch from one statistics program to another, all reports created by the previously used statistics program are deleted and new reports are created in accordance with the information read from log files kept on the server. This means that if you configured the system (at <strong class="specialbold">Domains &gt; </strong><strong class="placeholder">domain name</strong><strong class="specialbold"> &gt; Log Manager &gt; Log Rotation</strong>) so as to keep log files only for the last month, then Web statistics will be available only for the last month.    </p>
</li><li class="listbullet2"><strong class="specialbold">Custom error documents</strong>. When visitors coming to a site request pages that the web server cannot find, the web server generates and displays a standard HTML page with an error message. If you wish to create your own error pages and use them on your web server or allow your customers to do that, select the <strong class="specialbold">Custom error documents</strong> check box.</li></ul></li><li class="procedurelistnumber">Click <strong class="specialbold">OK</strong>. <p class="listcontinue">Now your server is ready to accommodate the new Web site, and the site owner can publish the site to the server. For instructions on publishing a Web site, refer to the <a id="h52000" class="jumptemplate" title="Creating and Publishing a Site" href="17299.htm" target="_self">Creating and Publishing a Site</a> section of this guide. </p>
<p class="listnote"><strong class="buttons">Note:</strong> If you transferred this domain name from another Web host, you will need to update the host DNS address with the domain name registrar so as to point to your name servers: log in to your registrar's web site, locate the forms used to manage the domain host pointers, and replace the current DNS host settings with your name servers' host names. The information on new name servers will spread across the DNS system within 48 hours.</p>
</li></ol><p class="bodytext"></p>
<p class="bodytext">If you have registered several domain names that you would like to point to a site hosted on this server, you should set up domain aliases. Refer to the Setting Up Additional Domain Names for a Site (Domain Aliases) section for details.</p>
<p class="bodytext">If you need to host several domains on your machine that will point to a site hosted on another server, you should set up domain forwarding. Refer to chapter Serving Domain Names for Sites Hosted on Other Servers (Domain Forwarding) for details.</p>
<p class="bodytext"></p>
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<p class="relatedheading">In this section:</p><p class="relateditem"><a href="22918.htm" target="_self">Limiting the Amount of Resources a Site Can Consume</a></p><p class="relateditem"><a href="22919.htm" target="_self">Allowing the Site Owner to Log in to Control Panel</a></p></td>
</tr>
</table>



</body>
<script>highlightTOC()</script>
</html>

